<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <!-- 使用组件 -->
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <School></School>
    <Student></Student>
  </div>
</template>

<script>
// 引入组件
import HelloWorld from "./components/HelloWorld.vue";
import School from "./components/School.vue";
import Student from "./components/Student.vue";

// 暴露组件：简写成export default {}，完整写法:export default Vue.extend({})
export default {
  name: "App",
  // 注册组件
  components: {
    HelloWorld,
    School,
    Student,
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
